package com.frippler.jenkins_test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/test")
public class HelloController {


    /**
     * 测试控制器
     */
    @RequestMapping("/hello")
    @ResponseBody
    public String test() {

        return "hello world";
    }


    @RequestMapping("/hello2")
    @ResponseBody
    public String test3() {

        return "hello world1111";
    }
}
